﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Public.master" AutoEventWireup="true"
    CodeFile="submit-to-market.aspx.cs" Inherits="submit_to_market" Title="Submit To Market" %>

<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>
<%@ Register Src="Controls/wucPostWriter.ascx" TagName="wucPostWriter" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="Javascripts/JQuery/jquery-1.3.2.min.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="Server">
  <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <div>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="BulletList"
                ShowMessageBox="False" ShowSummary="true" EnableClientScript="true" HeaderText="Following fields are required" />
        </div>
        <div>
            <table cellpadding="0" cellspacing="4" border="0" width="90%">
                <tr class="PostCategory">
                    <td style=" padding-left:5px;">
                        Submit To MarketPlace
                    </td>
                </tr>
                <tr>
                    <td>
                        <ucc:ResponseMessage ID="uccResponse" runat="server"></ucc:ResponseMessage>
                    </td>
                </tr>
                <tr>
                    <td align="left" valign="top">
                        <b>Title</b>
                    </td>
                </tr>
                <tr>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtTitle" runat="server" Width="98%"></asp:TextBox><asp:RequiredFieldValidator
                            ID="rfvTitle" ControlToValidate="txtTitle" Display="None" runat="server" ErrorMessage="Title"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="left" valign="top">
                        <b>Content</b>
                    </td>
                </tr>
                <tr>
                    <td align="left" valign="top">
                        <uc1:wucPostWriter ID="wucPostWriter1" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="left" valign="top">
                        <asp:CheckBox ID="chkShowContactInfo" AutoPostBack="true" runat="server" 
                            Text="ShowContact Info" oncheckedchanged="chkShowContactInfo_CheckedChanged" />
                        <font style="color: #AFFFFD;">[Note: If you select ShowContact Info your Contact info
                            will be visible to marketplace]</font>
                    </td>
                </tr>
                <tr>
                    <td align="left" valign="top">
                        <asp:UpdatePanel ID="upnlContacInfo" runat="server">
                        <ContentTemplate>
                        <div id="divContactInfo" runat="server">
                            <asp:TextBox ID="txtContactInfo" runat="server" Width="98%" Height="100px" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvtxtContactInfo" ControlToValidate="txtContactInfo"
                                Display="None" runat="server" ErrorMessage="ContactInfo Missing"></asp:RequiredFieldValidator>
                            
                        </div>
                        </ContentTemplate>
                        <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="chkShowContactInfo" EventName="checkedchanged" />
                        </Triggers>
                        </asp:UpdatePanel>
                        
                    </td>
                </tr>
                 <tr>
                    <td align="left" valign="top">
                     <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="PostButton" 
                            onclick="btnSave_Click" />
                    </td>
                    </tr>
            </table>
        </div>
    </div>

 

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" runat="Server">
</asp:Content>
